package com.imooc.springboot.dubbo.consumer.quickstart;

import com.alibaba.dubbo.config.annotation.Reference;
import com.imooc.springboot.dubbo.ServiceApi;
import org.springframework.stereotype.Component;

@Component
public class QuickstartConsumer {
    @Reference
    ServiceApi serviceApi;

    public void sendMessage(String message){
        message = serviceApi.sendMessage(message);
        System.out.println(message);
    }
}
